/* eslint-disable ts/no-use-before-define */
import { message, Modal, notification } from 'ant-design-vue';

export { holders, messageApi as antdMessage, modalApi as antdModal, notificationApi as antdNotification };

const [messageApi, MessageContextHolder] = message.useMessage({
  duration: 4,
});
const [notificationApi, NotificationContextHolder] = notification.useNotification({
  top: '70px',
});
const [modalApi, ModalHolder] = Modal.useModal();

const holders = [
  MessageContextHolder,
  NotificationContextHolder,
  ModalHolder,
];
